package com.izhar.answeringmachine.mapper;

import com.izhar.answeringmachine.Entity.SubmitCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SubmitCodeMapper {

    Integer insert(@Param("submitCode") SubmitCode submitCode);

    /**
     * 根据id搜索 用户提交的代码
     * @param id 主键id
     * @return  SubmitCode
     */
    SubmitCode selectById(String id);

    Integer updateErrReason(@Param("submitCode")SubmitCode submitCode);

    /**
     * 设置pass  是否通过
     * @param id 行id
     * @param pass 是否通过 字段
     * @return
     */
    Integer setPass(@Param("id") String id,@Param("pass") Integer pass);
}
